<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class XMLParser</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class XMLParser</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">XMLParser class</p>
<p class="description"><p>This class parses a given XML data to a multidimensional array by using  a user-defined tag. The default tag is &lt;graph&gt;. The example below explains  how the class works.  <div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$xml_data&nbsp;</span>=&nbsp;<span class="src-str">&quot;&lt;root&gt;</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;graph&nbsp;color='234,234,233'&nbsp;label='string'&gt;x^2+5&lt;/graph&gt;</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;another_tag&nbsp;name='tag'&gt;This&nbsp;tag&lt;/another_tag&gt;</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;graph&gt;x^2+5&lt;/graph&gt;</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/root&gt;&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$xml&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser</a><span class="src-sym">(</span><span class="src-var">$xml_data</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<a href="http://www.php.net/print_r">print_r</a><span class="src-sym">(</span><span class="src-var">$xml</span><span class="src-sym">-&gt;</span><a href="../WikiPlot/XMLParser.html#methodCreateInputArray">CreateInputArray</a><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-php">?&gt;</span></div></li>
<li><div class="src-line">&nbsp;OUTPUT:</div></li>
<li><div class="src-line">&nbsp;Array</div></li>
<li><div class="src-line">&nbsp;(</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;[0]&nbsp;=&gt;&nbsp;Array</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[0]&nbsp;=&gt;&nbsp;Array</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[color]&nbsp;=&gt;&nbsp;234,234,233</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[label]&nbsp;=&gt;&nbsp;string</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[1]&nbsp;=&gt;&nbsp;x^2+5</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;[1]&nbsp;=&gt;&nbsp;Array</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[0]&nbsp;=&gt;&nbsp;x^2+5</div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)</div></li>
<li><div class="src-line">&nbsp;)</div></li>
</ol></div></p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/_WikiPlot.php.html#functionRenderWikiPlot">RenderWikiPlot()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodCreateInputArray">XMLParser::CreateInputArray()</a></li>
				<li><span class="field">copyright:</span> Copyright 2006, WikiPlot development team.</li>
				<li><span class="field">author:</span> WikiPlot development team.</li>
				<li><span class="field">license:</span> <a href="http://www.gnu.org/licenses/gpl.txt">GNU General Public License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_xml.class.php.html">/xml.class.php</a> (line <span class="field"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a65">65</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																								<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$Attributes" title="details" class="var-name">$Attributes</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$Input" title="details" class="var-name">$Input</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$Parser" title="details" class="var-name">$Parser</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$Separator" title="details" class="var-name">$Separator</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$Tag" title="details" class="var-name">$Tag</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$TagData" title="details" class="var-name">$TagData</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$Tags" title="details" class="var-name">$Tags</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																				
												<div class="method-definition">
											<span class="method-result"><a href="../WikiPlot/XMLParser.html">XMLParser</a></span>
										<a href="#XMLParser" title="details" class="method-name">XMLParser</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$Data</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#CloseTag" title="details" class="method-name">CloseTag</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$Parser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$Tag</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">$Graph</span>
										<a href="#CreateInputArray" title="details" class="method-name">CreateInputArray</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#CreateTagArray" title="details" class="method-name">CreateTagArray</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#ExplodeInputData" title="details" class="method-name">ExplodeInputData</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#GetCharData" title="details" class="method-name">GetCharData</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$Parser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$CharData</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#OpenTag" title="details" class="method-name">OpenTag</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$Parser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$Tag</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$Attributes</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#Parse" title="details" class="method-name">Parse</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$Data</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$Attributes" id="$Attributes"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$Attributes</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a122">122</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Attributes of interested tag</p>
<p class="description"><p>The variable will always be an array whether the interested tag has any  attributes or not. If the interested tag has any attribute the $Attributes  variable will be used otherwise it will be ignored.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodOpenTag">XMLParser::OpenTag()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodCreateTagArray">XMLParser::CreateTagArray()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$Input" id="$Input"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$Input</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a82">82</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">XML data given by user</p>
<p class="description"><p>Stores the XML data given by user as it is</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodExplodeInputData">XMLParser::ExplodeInputData()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$Parser" id="$Parser"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$Parser</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a73">73</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Created XML Parser</p>
<p class="description"><p>Is a resource handle and referenced to be used by athor XML functions</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodCloseTag">XMLParser::CloseTag()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodGetCharData">XMLParser::GetCharData()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodOpenTag">XMLParser::OpenTag()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$Separator" id="$Separator"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$Separator</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a157">157</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The interested tag</p>
<p class="description"><p>The variable is our iterested tag. It means the tag that we are  iterested to finde in the given XML data.  The way you should definde your interested tag is as follows:  If your interested tag is &lt;Tag&gt; than you should change the  $Separator variable to XMLParser::Separator = &quot;&lt;Tag&quot; not &quot;&lt;Tag&gt;&quot;  or something else!</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodExplodeInputData">XMLParser::ExplodeInputData()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$Tag" id="$Tag"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$Tag</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a111">111</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">An interested tag in given XML data</p>
<p class="description"><p>The variable stores attribute(s) and data of an interested tag not  the tag it selv &lt;tag&gt;. For example:  <div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-key">If&nbsp;</span><span class="src-id">this&nbsp;is&nbsp;an&nbsp;interested&nbsp;tag</span></div></li>
<li><div class="src-line">&nbsp;&lt;<span class="src-id">graph&nbsp;color</span>=<span class="src-str">'23,25,200'&nbsp;</span><span class="src-id">lable</span>=<span class="src-str">'string'</span>&gt;<span class="src-num">2</span><span class="src-id">x</span>^<span class="src-num">3</span>+<span class="src-num">3</span><span class="src-id">x</span>&lt;/<span class="src-id">graph</span>&gt;&nbsp;<span class="src-id">the&nbsp;variable</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-id">Variable&nbsp;</span><span class="src-var">$Tag&nbsp;</span><span class="src-id">will&nbsp;look&nbsp;like&nbsp;this</span>:</div></li>
<li><div class="src-line">&nbsp;<span class="src-key">Array</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">[</span><span class="src-num">0</span><span class="src-sym">]&nbsp;</span>=&gt;&nbsp;<span class="src-key">Array</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">(</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">[</span><span class="src-id">color</span><span class="src-sym">]&nbsp;</span>=&gt;&nbsp;<span class="src-num">23</span><span class="src-sym">,</span><span class="src-num">25</span><span class="src-sym">,</span><span class="src-num">200</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">[</span><span class="src-id">lable</span><span class="src-sym">]&nbsp;</span>=&gt;&nbsp;<span class="src-id">string</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">)</span></div></li>
<li><div class="src-line">&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">[</span><span class="src-num">1</span><span class="src-sym">]&nbsp;</span>=&gt;&nbsp;<span class="src-num">2</span><span class="src-id">x</span>^<span class="src-num">3</span>+<span class="src-num">3</span><span class="src-id">x</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-sym">)</span></div></li>
</ol></div>  As you can see the first element in the array is an array and it  will always be an array if the interested tag has attribute(s). The second  element in the array will be the data of the tag as string. One more thing  to be notes is that the array can not contain more then two elements, while one  element is possible.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodCreateTagArray">XMLParser::CreateTagArray()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$TagData" id="$TagData"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$TagData</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a133">133</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Data of the tag</p>
<p class="description"><p>The variable will store the data of the tag. For example  &lt;tag&gt; tag data &lt;/tag&gt;  $TagData = &quot;tag data&quot;;</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodGetCharData">XMLParser::GetCharData()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodCreateTagArray">XMLParser::CreateTagArray()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$Tags" id="$Tags"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$Tags</span>
						(line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a143">143</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">All interested tags</p>
<p class="description"><p>The variable will store alle the interested tags found in the  given XML data.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodCreateInputArray">XMLParser::CreateInputArray()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodExplodeInputData">XMLParser::ExplodeInputData()</a></li>
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodXMLParser" id="XMLParser"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor XMLParser</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a181">181</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor of XMLParser class</p>
<p class="description"><p>The function initializes the fallowing variables:  $Parser, $Input, $Tags, $Attributes and $Separator.  It makes it possible to use XML Parser within an object  by using the function xml_set_object. Besides it uses also  two more XML Parser Functions xml_set_element_handler(),  xml_set_character_data_handler() and xml_parser_free().</p></p>
	<ul class="tags">
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#methodExplodeInputData">XMLParser::ExplodeInputData()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#methodGetCharData">XMLParser::GetCharData()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#methodOpenTag">XMLParser::OpenTag()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#methodParse">XMLParser::Parse()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#methodCloseTag">XMLParser::CloseTag()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Tags">XMLParser::$Tags</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Attributes">XMLParser::$Attributes</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Input">XMLParser::$Input</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Parser">XMLParser::$Parser</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../WikiPlot/XMLParser.html">XMLParser</a></span>
		<span class="method-name">
			XMLParser
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$Data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$Data</span><span class="var-description">: XML Input Data from user</span>			</li>
				</ul>
		
			
	</div>
<a name="methodCloseTag" id="CloseTag"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">CloseTag</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a358">358</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles end/closing tag</p>
<p class="description"><p>The function gets the end/closing tag using the $Parser.  It is used by xml_set_element_handler() function  in the  constructer.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Parser">XMLParser::$Parser</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			CloseTag
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$Parser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$Tag</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$Parser</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$Tag</span>			</li>
				</ul>
		
			
	</div>
<a name="methodCreateInputArray" id="CreateInputArray"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">CreateInputArray</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a377">377</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates an array containing all parsed XML data</p>
<p class="description"><p>The function runs each and every tag in the $Tags array  through the XMLParser object. The parsed data is then  stored in the $Graph which is returned at the end of the  proces.</p></p>
	<ul class="tags">
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html">XMLParser</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Tags">XMLParser::$Tags</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">$Graph</span>
		<span class="method-name">
			CreateInputArray
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodCreateTagArray" id="CreateTagArray"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">CreateTagArray</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a247">247</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Puts parsed data into an array</p>
<p class="description"><p>The function takes the variables $Attributes and $TagData and  puts them into an array called $Tag. The first element in the  array will be Attribute(s) of the interested tag and the second  element will be the data of the tag. If Attribute does not exist  the first element will then be the data of the tag.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodParse">XMLParser::Parse()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$TagData">XMLParser::$TagData</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Tag">XMLParser::$Tag</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Attributes">XMLParser::$Attributes</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			CreateTagArray
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodExplodeInputData" id="ExplodeInputData"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">ExplodeInputData</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a271">271</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Findes the interested tag in XML Data</p>
<p class="description"><p>The function uses explode() function and the $Separator to finde  the interested tag in the given XML Data. When the tags are found  it puts them into array called $Tags.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Tags">XMLParser::$Tags</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Separator">XMLParser::$Separator</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Input">XMLParser::$Input</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			ExplodeInputData
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodGetCharData" id="GetCharData"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">GetCharData</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a339">339</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets data of the tag</p>
<p class="description"><p>The function gets the data of an interesting tag by using the  $Parser. It is used by xml_set_character_data_handler() function  in the constructer.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$TagData">XMLParser::$TagData</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Parser">XMLParser::$Parser</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			GetCharData
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$Parser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$CharData</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$Parser</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$CharData</span>			</li>
				</ul>
		
			
	</div>
<a name="methodOpenTag" id="OpenTag"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">OpenTag</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a308">308</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles attribute(s) of a tag</p>
<p class="description"><p>The function gets the value of the attribute(s) of a tag using the  $Parser. It is used by xml_set_element_handler() function in the  constructor.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Parser">XMLParser::$Parser</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#var$Attributes">XMLParser::$Attributes</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			OpenTag
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$Parser</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$Tag</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$Attributes</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$Parser</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$Tag</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$Attributes</span>			</li>
				</ul>
		
			
	</div>
<a name="methodParse" id="Parse"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Parse</span> (line <span class="line-number"><a href="../__filesource/fsource_WikiPlot__xml.class.php.html#a224">224</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Parses the given XML data</p>
<p class="description"><p>The function uses xml_parse() function from XML Parser Functions in PHP  and parses only the first tag in the given XML data and ignores  everything else. So you can not use it for multitag XML data.  The function also calls CreateTagArray() to generate tag attribute(s)  and data to an array.</p></p>
	<ul class="tags">
				<li><span class="field">usedby:</span> <a href="../WikiPlot/XMLParser.html#methodXMLParser">XMLParser::XMLParser()</a></li>
				<li><span class="field">uses:</span> <a href="../WikiPlot/XMLParser.html#methodCreateTagArray">XMLParser::CreateTagArray()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			Parse
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$Data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$Data</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 13 Oct 2006 16:12:28 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0</a>
	</p>
	</div></body>
</html>